package org.domain.rescue2011.session;

import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityHome;

import es.us.isa.jdbl.domain.AbstractNode;
import es.us.isa.jdbl.domain.biblio.Contributors;

@Name("abstractNodeHome")
public class AbstractNodeHome extends EntityHome<AbstractNode>{

	public void setAbstractNodeNid(Integer id) {
		setId(id);
	}

	public Integer getAbstractNodeNid() {
		return (Integer) getId();
	}

	@Override
	protected AbstractNode createInstance() {
		AbstractNode abstractNode = new AbstractNode() {
		};;//TODO esto q es?XD;//TODO esto q es?XD
		return abstractNode;
	}

	public void load() {
		if (isIdDefined()) {
			wire();
		}
	}

	public void wire() {
		getInstance();
	}

	public boolean isWired() {
		return true;
	}

	public AbstractNode getDefinedInstance() {
		return isIdDefined() ? getInstance() : null;
	}

	
	
}
